﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace University.Workshop.Model
{
    [Table("WaterReadingControl")]
    public class WaterReadingControl
    {
        [Key]
        public long WaterReadingId { get; set; }

        [ForeignKey("User")]
        public string ReaderId { get; set; }

        [ForeignKey("Kardex")]
        public int KardexId { get; set; }

        public double CurrentMeasurerRead { get; set; }
        public double PreviousMeasurerRead { get; set; }
        public decimal PaidAmount { get; set; }
        public DateTime ReadingDate { get; set; }
        public decimal WaterFare { get; set; } // tarifa de agua
        public short ReadingState { get; set; } // estado de lectura : 0-nuevo, 1-modificado, 2-confirmado, 3-cobrado
        public short ReadingType { get; set; } // tipo de lectura: 0-lectura, 1-cambio de medidor
        public bool IsValidReading { get; set; }
        //podriamos quitarlo
        public int? WaterCollectControlId { get; set; }
        
        public virtual User User { get; set; }
        public virtual Kardex Kardex { get; set; }
    }
}